#include<iostream>
#include<cstdlib>
#include"LinkNode.h"
using namespace std;

LinkNode* Recur_Find_X(LinkNode* L, ElemType x)
{
	if (!L)
		return NULL;
	return L->data == x ? L : Recur_Find_X(L->next, x);
}

int main()
{
	LinkNode* L;
	int a[] = { 1,5,3,2,4 };
	CreateList(L, a, 5);

	LinkNode* xpos = Recur_Find_X(L, 2);

	cout << xpos << endl;

	return 0;
}